<extend name="Layout/ins_page" />
<block name="content">
<!--{:W('PageHeader/adv_search',array('name'=>$folder_name,'search'=>'M'))}-->
<!--<form method="post" name="form_adv_search" id="form_adv_search">-->
	<!--<div class="adv_search panel panel-default hidden" id="adv_search">-->
		<!--<div class="panel-heading">-->
			<!--<div class="row">-->
				<!--<h4 class="col-xs-6">高级搜索</h4>-->
				<!--<div class="col-xs-6 text-right">-->
					<!--<a  class="btn btn-sm btn-info" onclick="submit_adv_search();">搜索</a>-->
					<!--<a  class="btn btn-sm" onclick="close_adv_search();">关闭</a>-->
				<!--</div>-->
			<!--</div>-->
		<!--</div>-->
		<!--<div class="panel-body">-->
			<!--<div class="form-group col-sm-6">-->
				<!--<label class="col-sm-4 control-label" for="title">标题：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input  class="form-control" type="text" id="title" name="title" >-->
				<!--</div>-->
			<!--</div>-->

			<!--<div class="form-group col-sm-6">-->
				<!--<label class="col-sm-4 control-label" for="eq_type">流程类型：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<select class="form-control" name="type_name" id="eq_type">-->
						<!--<option value="">全部</option>-->
						<!--{:fill_option($flow_type_list)}-->
					<!--</select>-->
				<!--</div>-->
			<!--</div>-->

			<!--<div class="form-group col-sm-6">-->
				<!--<label class="col-sm-4 control-label" for="del_emp">删除人：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input  class="form-control" type="text" id="del_emp" name="del_emp" >-->
				<!--</div>-->
			<!--</div>-->

			<!--<div class="form-group col-sm-6">-->
				<!--<label class="col-sm-4 control-label" for="be_create_time">删除时间：</label>-->
                <!--<div class="col-sm-8">-->
                    <!--<div class="input-daterange input-group">-->
                        <!--<input type="text" class="input-sm form-control text-center" name="beginTime"-->
                               <!--readonly="readonly"/>-->
                        <!--<span class="input-group-addon">-</span>-->
                        <!--<input type="text" class="input-sm form-control text-center" name="endTime"-->
                               <!--readonly="readonly"/>-->
                    <!--</div>-->
                <!--</div>-->
			<!--</div>-->
		<!--</div>-->
	<!--</div>-->
<!--</form>-->
<div class="ul_table ul_table_responsive">
	<ul>
		<li class="thead" style="padding-left:10px">
			<div class="pull-left">
				<span class="col-13 ">编号</span>
				<span class="col-13 ">类型</span>
                <span class="col-13 ">标题</span>

			</div>
			<div class="pull-right">
				<span  class="col-12">删除时间</span>
				<span  class="col-6 ">删除人</span>

			</div>

		</li>
	</ul>
	<empty name="list">
		<ul>
			<li class="no-data">
				没找到数据
			</li>
		</ul>
		<else/>
		<form method="post" action="" name="form_data" id="form_data">
			<ul>
				<foreach name="list" item="vo">
					<li class="tbody <eq name='folder' value='receive'>{:get_flow_receive_is_read($vo['id'])}</eq>">

						<div class="pull-left">
							<span class="col-13 ">{$vo.doc_no}</span>
							<span class="col-13  "> {$vo.type_name}</span>
                            <span class="col-13  "> {$vo.title}</span>
						</div>
						<div class="pull-right">
							<span class="col-12   "> {$vo.del_date|to_date='Y-m-d H:i'} </span>
							<span class="col-6   ">{$vo.del_emp}</span>

						</div>

					</li>
				</foreach>
			</ul>
		</form>
		<div class="pagination">
			{$page}
		</div>
	</empty>
</div>
</block>
<block name="js">
<script type="text/javascript">
	$(document).ready(function() {
		set_return_url();
	});

    $(".folder-delete").on("click",function(data){

        var url = "{:U('Home/Flow/del')}";
        $.getJSON(url,{id:$(this).attr("folderId")},function(data){
            if (data.status) {
                ui_alert(data.info, function() {
                    parent.location.reload(true);
                    myclose();
                });
            }else{
                ui_error(data.info);
            }
        });

    });
</script>
</block>